﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000071 RID: 113
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AetherSkillInfo : IMessage<AetherSkillInfo>, IMessage, IEquatable<AetherSkillInfo>, IDeepCloneable<AetherSkillInfo>, IBufferMessage
	{
		// Token: 0x17000165 RID: 357
		// (get) Token: 0x060004F7 RID: 1271 RVA: 0x0000F019 File Offset: 0x0000D219
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AetherSkillInfo> Parser
		{
			get
			{
				return AetherSkillInfo._parser;
			}
		}

		// Token: 0x17000166 RID: 358
		// (get) Token: 0x060004F8 RID: 1272 RVA: 0x0000F020 File Offset: 0x0000D220
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AetherSkillInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000167 RID: 359
		// (get) Token: 0x060004F9 RID: 1273 RVA: 0x0000F032 File Offset: 0x0000D232
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AetherSkillInfo.Descriptor;
			}
		}

		// Token: 0x060004FA RID: 1274 RVA: 0x0000F039 File Offset: 0x0000D239
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AetherSkillInfo()
		{
		}

		// Token: 0x060004FB RID: 1275 RVA: 0x0000F041 File Offset: 0x0000D241
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AetherSkillInfo(AetherSkillInfo other) : this()
		{
			this.dressAvatarId_ = other.dressAvatarId_;
			this.itemId_ = other.itemId_;
			this.num_ = other.num_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060004FC RID: 1276 RVA: 0x0000F07E File Offset: 0x0000D27E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AetherSkillInfo Clone()
		{
			return new AetherSkillInfo(this);
		}

		// Token: 0x17000168 RID: 360
		// (get) Token: 0x060004FD RID: 1277 RVA: 0x0000F086 File Offset: 0x0000D286
		// (set) Token: 0x060004FE RID: 1278 RVA: 0x0000F08E File Offset: 0x0000D28E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DressAvatarId
		{
			get
			{
				return this.dressAvatarId_;
			}
			set
			{
				this.dressAvatarId_ = value;
			}
		}

		// Token: 0x17000169 RID: 361
		// (get) Token: 0x060004FF RID: 1279 RVA: 0x0000F097 File Offset: 0x0000D297
		// (set) Token: 0x06000500 RID: 1280 RVA: 0x0000F09F File Offset: 0x0000D29F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemId
		{
			get
			{
				return this.itemId_;
			}
			set
			{
				this.itemId_ = value;
			}
		}

		// Token: 0x1700016A RID: 362
		// (get) Token: 0x06000501 RID: 1281 RVA: 0x0000F0A8 File Offset: 0x0000D2A8
		// (set) Token: 0x06000502 RID: 1282 RVA: 0x0000F0B0 File Offset: 0x0000D2B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Num
		{
			get
			{
				return this.num_;
			}
			set
			{
				this.num_ = value;
			}
		}

		// Token: 0x06000503 RID: 1283 RVA: 0x0000F0B9 File Offset: 0x0000D2B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AetherSkillInfo);
		}

		// Token: 0x06000504 RID: 1284 RVA: 0x0000F0C8 File Offset: 0x0000D2C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AetherSkillInfo other)
		{
			return other != null && (other == this || (this.DressAvatarId == other.DressAvatarId && this.ItemId == other.ItemId && this.Num == other.Num && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000505 RID: 1285 RVA: 0x0000F124 File Offset: 0x0000D324
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.DressAvatarId != 0U)
			{
				num ^= this.DressAvatarId.GetHashCode();
			}
			if (this.ItemId != 0U)
			{
				num ^= this.ItemId.GetHashCode();
			}
			if (this.Num != 0U)
			{
				num ^= this.Num.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000506 RID: 1286 RVA: 0x0000F195 File Offset: 0x0000D395
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000507 RID: 1287 RVA: 0x0000F19D File Offset: 0x0000D39D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000508 RID: 1288 RVA: 0x0000F1A8 File Offset: 0x0000D3A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ItemId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.ItemId);
			}
			if (this.Num != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Num);
			}
			if (this.DressAvatarId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.DressAvatarId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000509 RID: 1289 RVA: 0x0000F220 File Offset: 0x0000D420
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.DressAvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DressAvatarId);
			}
			if (this.ItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemId);
			}
			if (this.Num != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Num);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600050A RID: 1290 RVA: 0x0000F290 File Offset: 0x0000D490
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AetherSkillInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.DressAvatarId != 0U)
			{
				this.DressAvatarId = other.DressAvatarId;
			}
			if (other.ItemId != 0U)
			{
				this.ItemId = other.ItemId;
			}
			if (other.Num != 0U)
			{
				this.Num = other.Num;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600050B RID: 1291 RVA: 0x0000F2F4 File Offset: 0x0000D4F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600050C RID: 1292 RVA: 0x0000F300 File Offset: 0x0000D500
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 32U)
					{
						if (num != 72U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.DressAvatarId = input.ReadUInt32();
						}
					}
					else
					{
						this.Num = input.ReadUInt32();
					}
				}
				else
				{
					this.ItemId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040001C7 RID: 455
		private static readonly MessageParser<AetherSkillInfo> _parser = new MessageParser<AetherSkillInfo>(() => new AetherSkillInfo());

		// Token: 0x040001C8 RID: 456
		private UnknownFieldSet _unknownFields;

		// Token: 0x040001C9 RID: 457
		public const int DressAvatarIdFieldNumber = 9;

		// Token: 0x040001CA RID: 458
		private uint dressAvatarId_;

		// Token: 0x040001CB RID: 459
		public const int ItemIdFieldNumber = 3;

		// Token: 0x040001CC RID: 460
		private uint itemId_;

		// Token: 0x040001CD RID: 461
		public const int NumFieldNumber = 4;

		// Token: 0x040001CE RID: 462
		private uint num_;
	}
}
